<?php
// +----------------------------------------------------------------------
// | Bwsaas
// +----------------------------------------------------------------------
// | Copyright (c) 2015~2020 http://www.buwangyun.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Gitee ( https://gitee.com/buwangyun/bwsaas )
// +----------------------------------------------------------------------
// | Author: buwangyun <hnlg666@163.com>
// +----------------------------------------------------------------------
// | Date: 2020-9-28 10:55:00
// +----------------------------------------------------------------------

namespace buwang\util\corn;

use think\facade\Log;

/**
 * swoole mn_crontab定时任务
 */
class SwooleCron
{

    public function handle($event): void
    {
        try {
            event('mn_crontab');
        } catch (\Throwable $e) {
            Log::error('定时任务事件报错: ' . $e->getMessage().':'.$e->getFile().':'.$e->getLine());
        }

    }
}
